<?php
/**
 * Class View
 * @author: Lee Way
 * @copyright: PiuZiu
 */
class View {

	/**
	 * Constructor
	 */
	function __construct() {
	}

	public function render($name, $noInclude = false) {
		if ($noInclude) {
			require 'views/' . $name . '.php';
		} else {
			require 'views/header.php';
			require 'views/' . $name . '.php';
			require 'views/footer.php';
		}
	}
}
?>